{% extends "base.html" %}

{% block title %}{{ application_name }} - New Page{% endblock %}

{% block body %}
  {% if user %}
  <form action="/new" method="post">
    <table border="1">
      <tr width="100%">
      <table width="100%">
      <tr>
      <td width="10%">
      <span>Title:</span>
      </td>
      <td width="90%">
      <input width="200px" name="title"/>
      </td>
      </tr>
      </table>
      </tr>
      <tr width="100%"><td>
      <textarea rows="10" cols="50" id="content" style="width: 100%; height: 400px" name="content"></textarea>
      </tr>
    </table>
    <div class="buttons">
      <span class="item"><input style="font-weight: bold" type="submit" value="Save"/></span>
    </div>
  </form>
  {% else %}
    <span><H2>Please login first.</H2></span>
  {% endif %}
  
{% endblock %}